package net.pinnoocle.playcommon.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author ye
 * @Description
 * @create 2021-09-23 20:58
 */

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum AuditStatusEnums {


    STATUS1(0, "未提审核"),
    STATUS2(1,"审核中"),
    STATUS3(2, "审核驳回"),
    STATUS4(3, "审核通过"),
    STATUS5(4,"提审中"),
    STATUS6(5, "提审失败");
    private Integer status;

    private String desc;

    public static String getDesc(Integer status) {
        for (AuditStatusEnums ele : values()) {
            if (ele.getStatus().equals(status)) return ele.getDesc();
        }
        return null;
    }
}
